package cjakma.study.portfolio.common;

import java.util.regex.Pattern;

/**
 * 공통 상수 <br/>
 * @author 서성수
 */
public class Constants {

	// 여부 상수
	public static final String YES = "Y";
	public static final String NO = "N";

	// 구분 상수
	public static final String DIV_ADD = "A";
	public static final String DIV_UPDATE = "U";

	// 숫자 상수
	public static final String ZERO = "0";
	public static final String ONE = "1";
	public static final String TWO = "2";
	public static final String THREE = "3";
	public static final String FOUR = "4";
	public static final String FIVE = "5";
	public static final String SIX = "6";
	public static final String SEVEN = "7";
	public static final String EIGHT = "8";
	public static final String NINE = "9";

	/**
	 * Result code attribute name
	 */
	public static final String RESULT_CODE_ATTRIBUTE_NAME = "resultCode";

	/**
	 * Result message attribute name
	 */
	public static final String RESULT_MESSAGE_ATTRIBUTE_NAME = "resultMsg";

	/**
	 * Default charset to use for encoding/decoding strings.
	 */
	public static final String ENCODING_CHARSET = "UTF-8";

	/**
	 * &#64;ID 패턴 (\\uc640\\uae00 \\uce90\\uc2a4\\ud130)
	 */
	public static final Pattern AT_ID_PATTERN = Pattern.compile("(^|[^\\w])@((\\uc640\\uae00 \\uce90\\uc2a4\\ud130)|([^@\\s]{2,15}))");

	/**
	 * &#64;ID 패턴 그룹 카운트
	 */
	public static final int AT_ID_PATTERN_GROUP_COUNT = 2;

	/**
	 * 어플리케이션 아이디
	 */
	public static final String APPLICATION_ID = "application.id";

	/**
	 * DDS 어플리케이션 아이디
	 */
	public static final String DDS_APP_ID = "dds";


}